﻿using System.Collections.Generic;
using Microsoft.Data.Schema.ScriptDom.Sql;

namespace Neznayka
{
    internal class VariableDefinitionVisitor : TSqlConcreteFragmentVisitor
    {
        private List<DeclareVariableElement> _targets;

        #region ctor
        public VariableDefinitionVisitor()
        {
            _targets = new List<DeclareVariableElement>();
        }
        #endregion

        #region properties
        public List<DeclareVariableElement> VariableDeclarations
        {
            get { return _targets; }
        }
        #endregion

        #region overrides
        public override void ExplicitVisit(DeclareVariableElement node)
        {
            _targets.Add(node);
        }
        #endregion

    }


}